package nl.haemers.galleries.events 
{
	import flash.events.Event;
	
	/**
	 * ...
	 * @author Jonathan Haemers
	 * @company Idreams
	 */
	public class GalleryControlEvent extends Event 
	{
		public static const ITEM_SELECTED			:String = "";
		public static const NEXT_ITEM				:String = "";
		public static const PREVIOUS_ITEM			:String = "";
		
		private var _id								:int;
		
		public function GalleryControlEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false, id:int=0) 
		{ 
			super(type, bubbles, cancelable);
			
			_id = id;
		} 
		
		public override function clone():Event 
		{ 
			return new GalleryControlEvent(type, bubbles, cancelable, _id);
		} 
		
		public override function toString():String 
		{ 
			return formatToString("GalleryControlEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
		public function get id() : int
		{ 
			return _id;
		}
		
	}
	
}